﻿using FreeSql.DataAnnotations;
using Jumei.Common.BaseModel;

namespace Jumei.Model.Business.GoodsManage
{
    /// <summary>
    /// 商品评分表
    /// </summary>
    [Table(Name = "gd_goods_scores")]
    public class GoodsScoresEntity : Entity, ITenant
    {
        /// <summary>
        /// 租户Id
        /// </summary>
        [Column(Position = -10)]
        public long? TenantId { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public long GoodsId { get; set; }

        public GoodsEntity Goods { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        public long ShopId { get; set; }

        /// <summary>
        /// 总评分
        /// </summary>
        public int TotalScore { get; set; }

        /// <summary>
        /// 总评评分用户数
        /// </summary>
        public int TotalUsers { get; set; }

        /// <summary>
        /// 商品评分
        /// </summary>
        public int GoodsScore { get; set; }

        /// <summary>
        /// 商品评分用户数
        /// </summary>
        public int GoodsUsers { get; set; }

        /// <summary>
        /// 服务评分
        /// </summary>
        public int ServiceScore { get; set; }

        /// <summary>
        /// 服务评分用户数
        /// </summary>
        public int ServiceUsers { get; set; }

        /// <summary>
        /// 时效评分
        /// </summary>
        public int timeScore { get; set; }

        /// <summary>
        /// 时效评分用户数
        /// </summary>
        public int TimeUsers { get; set; }
    }
}
